//引入
import Main from '../pages/Main'
import Home from '../pages/Home'
import Shop from '../pages/Shop'
import Login from '../pages/Login'
import Detail from '../pages/Detail'
import Car from '../pages/Car'
import Science from '../pages/Science'
import My from '../pages/My'
import Order from '../pages/Order'
import Heatul from '../pages/Heatul'
import Char from '../pages/Char'
//路由表
const routes = [
    {
        from: '/',
        to: '/main'
    },
    {
        path: '/main',
        component: Main,
        children: [
            {
                from: '/main',
                to: '/main/home'
            },
            {
                path: '/main/home',
                component: Home
            },
            {
                path: '/main/shop',
                component: Shop
            },
            {
                path: '/main/Science',
                component: Science,
            },
            {
                path: '/main/my',
                component: My
            }
        ]
    },
    {
        path: '/login',
        component: Login
    },
    {
        path: '/detail',
        component: Detail
    }, {
        path: '/car',
        component: Car
    },
    {
        path: '/order',
        component: Order
    },
    {
        path: '/heatul',
        component: Heatul
    },
    {
        path: '/char',
        component: Char
    }

]


export default routes

